function insert() {
    const accountMoney = document.getElementById('accountMoney').value;
    const accountName=document.getElementById('accountName').value;
    const accountDetails=document.getElementById('accountDetails').value;
    if (accountName.trim().length>200) {
        document.getElementById('errorMessage').innerHTML = '用途描述不能超过200字。';
        return false;
    }
    if (accountDetails.trim().length>200) {
        document.getElementById('errorMessage').innerHTML = '备注不能超过200字。';
        return false;
    }
    return true;
}